package com.example.controller;

import com.example.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class UserController {
    @Autowired
    UserService userService;
    @RequestMapping("/getCount")
    public String getCount(){
        System.out.println("一共"+userService.count()+"条数据");
        return "一共"+userService.count()+"条数据";
    }
}
